﻿namespace SRTSolutions.Elevate.IO
{
    using global::System.IO;

    /// <summary>
    /// Extension methods on Streams.
    /// </summary>
    public static class StreamExtensions
    {
        /// <summary>
        /// Bufferes the input stream.
        /// </summary>
        /// <param name="inputStream">The input stream.</param>
        /// <param name="bufferSize">Size of the buffer.</param>
        /// <returns></returns>
        public static BufferedInputStream Buffer(this Stream inputStream, int bufferSize)
        {
            return new BufferedInputStream(inputStream, bufferSize);
        }
    }
}
